<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.min.js"></script>
<link href="{$app_path}{$static_path}/css/login-style.css" rel='stylesheet' type='text/css' />
</head>
<body>
<div class="easyui-panel" style="padding:5px;">
	手机号码：<input type="text" value="" id="mobilekeyId"/>&nbsp;&nbsp;
	E-mail：<input type="text" value="" id="emailkeyId"/>&nbsp;&nbsp;
	<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:80px">Search</a><br/><br/>
	</div>
	<br/><br/>
	<div class="tabledivclasss">
	<table id="userpaylist_data" cellspacing="0" cellpadding="0">

	</table>
	</div>
<input type="hidden" value="{$app_path}{:U('Admin/User/userpaylist')}" id="userpayUrl" />
    <div id="payupdateDialog" class="easyui-window" title="增加资金" data-options="iconCls:'icon-save',closed:true" style="width:280px;height:200px;padding:10px;">
     <form  method="post" id="regupformid">
		  <input type='hidden' value="" name="id" id="regupid"/>
		<span style="color: red;" id="reguperrors"></span>
		<br/>
			增加资金<input type="number" name="numbermoney" id="regupnameId" maxlength="26" value=""/><br/><br/>
			<input type="button" value="提交" id="buttonSubRepay"/>
		</form>
    </div>
<script type="text/javascript" src="{$app_path}{$static_path}/js/userpay.js"></script>
<script type="text/javascript">
	var rows=$('#userpaylist_data').datagrid('getSelections');//
	$("#buttonSubRepay").click(function(){
		
		$.ajax({
			url:'{$app_path}{:U('Admin/User/usermoney')}',
			data:$("#regupformid").serialize(),
			success:function(data){
				
				if(data.status==1){
alert('充值成功');
$('#userpaylist_data').datagrid('reload');
$("#payupdateDialog").dialog('close');
				}else{
					alert('充值失败');
				}
			},
			
		});
	});

</script>
</body>
</html>